package com.pubinfo.passbook.common.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pubinfo.passbook.common.entity.TContractWriteoffRelation;
import com.pubinfo.passbook.common.model.dto.contract.BackParam;
import com.pubinfo.passbook.common.model.dto.contract.ContractIdParam;
import com.pubinfo.passbook.common.model.dto.contract.WBackParam;
import com.pubinfo.passbook.common.model.dto.contract.WriteOffBackParam;
import com.pubinfo.passbook.common.model.vo.contract.IncomeInfoBackVo;
import com.pubinfo.passbook.common.model.vo.contract.IncomeInfoVo;
import com.pubinfo.passbook.common.model.vo.contract.TContractProjectCostItemsBackVo;
import com.pubinfo.passbook.common.model.vo.contract.WBSInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 全
* @description 针对表【t_contract_writeoff_relation(报账单关联收入及项目成本信息)】的数据库操作Mapper
* @createDate 2021-12-07 17:47:12
* @Entity generator.domain.TContractWriteoffRelation
*/
public interface TContractWriteoffRelationMapper extends BaseMapper<TContractWriteoffRelation> {

    List<WBSInfoVo> selectByContactCode(@Param("contractId") Integer param);

    List<IncomeInfoVo> selectIncomeListByContactCode(@Param("contractId") Integer param);

    Integer  saveContractWriteoffRelation (TContractWriteoffRelation tContractWriteoffRelation);

    List<IncomeInfoBackVo> IncomeInfoBackList(@Param("param") BackParam param );

     List<TContractProjectCostItemsBackVo> WBSInfoBackList(@Param("param") WBackParam param);
}
